/**
 * http://usejsdoc.org/
 * @class concreteDecoratorA
 */
var util = require("util"),
	Decorator = require("./decorator");

/**
 * 
 * @desc 定义ConcreteDecoratorA函数类
 *
 */
function ConcreteDecoratorA(){
	Decorator.call(this);
	this.operation = function(){
		Decorator.operation;//调用被装饰类的operation基本方法
		console.log('add some decorator by ConcreteDecoratorA');
	};
}

/**设置ConcreteDecoratorA 继承Decorator类*/
util.inherits(ConcreteDecoratorA, Decorator);

/**暴露ConcreteDecoratorA类*/
module.exports = ConcreteDecoratorA;